/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - For1
 * <p>Powered by webrx On 2023-07-11 14:31:15
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For1 {
    public static void main(String[] args) {
        for (int i = 1; i <= 5; i++) {
            System.out.println(i);
        }
        System.out.println("----------------------");
        for (int i = 8; i > 0; i--) {
            System.out.printf("%d%s", i, " ".repeat(i));
        }

    }
}
